#ifndef ERROR_INSERT_HELP_H_H
#define ERROR_INSERT_HELP_H_H

typedef void (*error_insert_ptr)(void* this_ptr , nibble state[] , const int n) ;

typedef struct 
{
	int size ;
	int round ;
	int pos ;
	word word_val ;
	error_insert_ptr apply_func ;
}error_struct;

int add_error_struct( error_struct* error_data ) ;
void clear_error_struct() ;

void error_insert_hook_func( nibble state[] , const int n , int round ) ;

void xor_error_apply( void* this_ptr , nibble state[] , const int n ) ;

#endif